package com.disease.api.service.utils;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class IPUtil {
    public static String getIpAddress() {
        InetAddress inetAddress = null;
        try {
            inetAddress = InetAddress.getLocalHost();
        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
        }
        return inetAddress.getHostAddress();
    }
}
